<!DOCTYPE html>
<!-- saved from url=(0064)http://weixin.zto.cn/Address?OpenId=ocMyOjitqZxthXoyp6_f0oYIfawU -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="format-detection" content="telephone=no">
    <meta name="robots" content="none">
    <title>中通快递</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" type="text/css" href="/css/af.ui.css">
    <link rel="stylesheet" type="text/css" href="/css/icons.css">
    <link rel="stylesheet" type="text/css" href="/css/zto.css">
    <script type="text/javascript" src="/js/appframework.js"></script>
    <script type="text/javascript" src="/js/appframework.ui.js"></script>
    <script type="text/javascript" src="/js/zto.wap.js"></script>
<script type="text/javascript">
	
    function DelAddress(id) {
    	$.post("/deladr/",
            	{ "id": id},
		            function(result) {
		                if (result == "error") {
		                    showMask("系统异常，请重新提交！", "info", 3000);
		                }
		                if (result == "true" || result == true) {
		                    showMask("删除成功！","info", 1000);
		                    $("#"+id).remove();
		                } else {
		                    showMask(result.Message, "info", 3000);
		                }

            }, "json");
            
    }
	function getUrlParam(name) {
		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
		var r = window.location.search.substr(1).match(reg); 
		if (r != null) return unescape(r[2]); return null;
    }
</script>

</head>
<body>

<div class="hint">
    <span></span>
    <div class="hint_box"></div>
</div>
<div id="afui" class="zto"><div id="header" class="header"> <header id="address_header" style="transform: translate3d(0px, 0px, 0px) scale(1) rotate(0deg) rotateY(0deg) skew(0deg, 0deg); backface-visibility: hidden; opacity: 1; transition-property: all; transition-duration: 230ms; transition-timing-function: linear; transform-origin: 0% 0% 0px;">
    <h1>地址簿管理</h1>
    <a href="/addadress/?openid={{openid}}" data-ignore="True" class="icon add menuButtonAdd"></a>
</header></div>
    <div id="content">
<!--地址簿管理start-->
<div class="panel y-scroll" js-scrolling="true" title="" id="indexaddress" data-header="address_header" data-title="地址簿管理" style="overflow: hidden; display: block;"><div class="afScrollPanel" style="transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);">

        <div class="w5">
            <ul class="addressList">
                    <li>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                            {% for adr in adrlist %}
                            	<tr id={{adr.id}}>
                                <td width="25">
                                    <div class="default">
                                        <div class="curr" style="margin-top: 0px">
                                            <div class="smallradius white"></div>
                                        </div>
                                    </div>
                                </td>
                                <td style="line-height: 150%">
                                    <div style="height: 20px; overflow: hidden">{{adr.custname}}-{{adr.phoneno}}</div>
                                    <div style="height: 20px; overflow: hidden">{{adr.cityname}}</div>
                                    <div style="height: 20px; overflow: hidden">{{adr.detailAdrinfo}}</div>
                                </td>
                                <td width="90">
                                    <div class="editor" style="position: relative">
                                        <!--<a href="/Dorder/?OpenId={{openid}}&ContactName={{adr.custname}}&Mobile={{adr.phoneno}}&Senders={{adr.cityname}}&Address={{adr.detailAdrinfo}}" data-ignore="True" class="order">立即下单</a>-->
                                        <a onclick="DelAddress({{adr.id}})" data-ignore="True" class="delete">删除地址</a>
                                    </div>
                                </td>
                            </tr>
                            {% endfor %}
                        </tbody></table>
                    </li>
            </ul>
        </div>

</div><div class="afScrollbar" style="position: absolute; width: 5px; height: 20px; border-radius: 2px; display: none; top: 0px; background: rgb(141, 141, 141);"></div></div>

<div id="afui_mask" class="ui-loader" style="z-index: 20000; display: none;"><span class="ui-icon ui-icon-loading spin"></span><h1>内容加载中...</h1></div></body></html>